package com.meritdata.cloud.data.service.development.repository;

import com.meritdata.cloud.data.service.development.model.TdDataApiResultFiled;
import com.meritdata.cloud.data.service.development.model.TdDataApiTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

import javax.transaction.Transactional;
import java.util.Date;

public interface IDataApiResultFiledDao extends JpaRepository<TdDataApiResultFiled,Long>, QuerydslPredicateExecutor<TdDataApiResultFiled> {
    @Modifying
    @Transactional
    @Query("delete from TdDataApiResultFiled as c where c.apiId=:apiId")
    int deleteByApiId(Long apiId);
}
